package com.trust.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.trust.entity.FarmSeedLand;
import com.trust.mapper.FarmSeedLandMapper;
import com.trust.service.FarmSeedLandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class FarmSeedLandServiceImpl extends ServiceImpl<FarmSeedLandMapper, FarmSeedLand> implements FarmSeedLandService {

    @Resource
    private FarmSeedLandMapper mapper;

    @Override
    public void removeByFarmSeedId(Integer farmSeedId) {
        LambdaQueryWrapper<FarmSeedLand> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(FarmSeedLand::getFarmSeedId, farmSeedId);
        this.remove(wrapper);
    }
}
